package com.doangeometrydash.extra;

import com.doangeometrydash.main.GameActivity;

import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

public class StoredData
{
	public static final String filename = "MyData";
	SharedPreferences data = null;
	Editor editor;
	public void write(String name,boolean key,GameActivity activity)
	{
		data = activity.getSharedPreferences(filename, 0);
		editor = data.edit();
		editor.putBoolean(name, key);
		editor.commit();
	}
	
	public Boolean read(String name,GameActivity activity)
	{
		data = activity.getSharedPreferences(filename, 0);
		return  data.getBoolean(name, true);
	}
}